import Vue from 'vue'

import {
  Container,
  Header,
  Aside,
  Main,
  Footer,
  Menu,
  Submenu,
  MenuItem,
  Icon,
  Row,
  Col,
  Button,
  Form,
  FormItem,
  Input,
  Radio,
  RadioGroup,
  Checkbox,
  CheckboxGroup,
  Upload,
  TimePicker,
  DatePicker,
  Table,
  TableColumn,
  Pagination,
  Dialog,
  Notification,
  MessageBox,
  Message
} from 'element-ui'

const uses = [
  Container,
  Header,
  Aside,
  Main,
  Footer,
  Menu,
  Submenu,
  MenuItem,
  Icon,
  Row,
  Col,
  Button,
  Form,
  FormItem,
  Input,
  Radio,
  RadioGroup,
  Checkbox,
  CheckboxGroup,
  Upload,
  TimePicker,
  DatePicker,
  Table,
  TableColumn,
  Pagination,
  Dialog
]
uses.forEach(use => {
  Vue.use(use)
})

Vue.prototype.$notify = Notification
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$message = Message
